package wsi.subgraph.entity;

import org.rygh.core.model.common.Pair;

import wsi.dataguide.tree.WSXmlLeaf;
import wsi.subgraph.tree.EntityLeaf;

public class XmlEntityPair extends Pair<WSXmlLeaf, EntityLeaf> {

	public XmlEntityPair(WSXmlLeaf left, EntityLeaf right) {
		super(left, right);

	}

	public EntityLeaf getEntityLeaf() {
		return getRight();
	}

	public WSXmlLeaf getXmlLeaf() {
		return getLeft();
	}

	public boolean valueEquals(WSXmlLeaf l, EntityLeaf n) {
		return getXmlLeaf() == l && getEntityLeaf() == n;
	}
}
